<?php

class Slide extends AppModel
{

    var $name = 'Slide';

    var $belongsTo = array('Feed' => 
							array('className'   => 'Feed',
								  'conditions'  => '',
								  'order'       => 'order',
								  'foreignKey'  => 'feed_id'
                            )
					 );

    var $validate = array (
        'title'     => VALID_NOT_EMPTY,
        'body'      => VALID_NOT_EMPTY,
        'duration'  => VALID_NUMBER,
        'order'     => VALID_NUMBER,
        'feed_id'   => VALID_NOT_EMPTY,
        'show_from' => VALID_NOT_EMPTY,
        'show_till' => VALID_NOT_EMPTY
    );


}




?>